import React, { Component } from "react";
import { clinList } from "../tabFile/api";
import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';
export default class App extends Component {
  componentDidMount() {
    console.log("获取数据!");
    clinList({
      cityId: "310100",
      pageNum: 1,
      pageSize: 10,
      type: 1,
      k: 3090335,
    }).then((e) => {
      console.log(e);
    });
  }
  render() {
    return (
      <div>
        <Swiper
          spaceBetween={100}
          onSlideChange={() => console.log("slide change")}
          onSwiper={(swiper) => console.log(swiper)}
        >
          <SwiperSlide>Slide 1</SwiperSlide>
          <SwiperSlide>Slide 2</SwiperSlide>
          <SwiperSlide>Slide 3</SwiperSlide>
          <SwiperSlide>Slide 4</SwiperSlide>
        </Swiper>
      </div>
    );
  }
}
